package com.yongren.mall.goods.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * SPU，是standard product unit，标准化产品单元，是商品信息聚合的最小单位，属性值、特性相同的商品就
 * </p>
 *
 * @author yongren
 * @since 2021-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Spu对象", description = "SPU，是standard product unit，标准化产品单元，是商品信息聚合的最小单位，属性值、特性相同的商品就")
public class Spu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品款式标识")
    private Long id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "图片地址")
    private String img;

    @ApiModelProperty(value = "评价")
    private String comment;

    @ApiModelProperty(value = "品牌名称")
    private Long brandName;

    @ApiModelProperty(value = "品牌id")
    private Long brandId;

    @ApiModelProperty(value = "类别id")
    private Long categoryId;


}
